define("dojo/_base/declare esri/layers/TiledMapServiceLayer esri/layers/TileInfo esri/geometry/Extent esri/SpatialReference".split(" "),
    function (C, Q, T, E, S) {
        return C(Q, {
            declaredClass: "tdtlib.JsTdtLayer_Vector",
            constructor: function () {
                this.spatialReference = new S({wkid: 4490});
                this.initialExtent = (this.fullExtent = new E(116.10358013377254, 30.710719079012677, 122.09030402444137, 35.21265930204362, this.spatialReference));
                this.tileInfo = new T({
                    "dpi": 90.71428571428571,
                    "cols": 256,
                    "rows": 256,
                    "format": 'image/jpgpng',
                    "compressionQuality": 0,
                    "origin": {
                        "x": -180,
                        "y": 90
                    },
                    "spatialReference": new S({
                        "wkid": 4490
                    }),
                    "lods": [
                        {
                            "level": 0,
                            "scale": 590995197.141668,
                            "resolution": 1.406250026231578
                        }, {
                            "level": 1,
                            "scale": 295497598.570834,
                            "resolution": 0.703125013115789
                        }, {
                            "level": 2,
                            "scale": 147748799.285417,
                            "resolution":  0.3515625065578945
                        }, {
                            "level": 3,
                            "scale":  73874399.6427087,
                            "resolution": 0.17578125327894775
                        }, {
                            "level": 4,
                            "scale": 36937199.8213544,
                            "resolution": 0.08789062663947399
                        },
                        {
                            "level": 5,
                            "scale": 18468599.9106772,
                            "resolution": 0.043945313319736994
                        },
                        {
                            "level": 6,
                            "scale":9234299.95533859,
                            "resolution": 0.021972656659868472
                        },
                        {
                            "level": 7,
                            "scale": 4617149.97766929,
                            "resolution": 0.010986328329934226
                        }, {
                            "level": 8,
                            "scale": 2308574.98883465,
                            "resolution":  0.005493164164967124
                        }, {
                            "level": 9,
                            "scale": 1154287.49441732,
                            "resolution": 0.0027465820824835504
                        }, {
                            "level": 10,
                            "scale": 577143.747208662,
                            "resolution": 0.0013732910412417797
                        }, {
                            "level": 11,
                            "scale": 288571.873604331,
                            "resolution": 0.0006866455206208899
                        }, {
                            "level": 12,
                            "scale": 144285.936802165,
                            "resolution": 0.00034332275390625
                        }, {
                            "level": 13,
                            "scale": 72142.9684010827,
                            "resolution": 0.0001716613801552224
                        }, {
                            "level": 14,
                            "scale": 36071.4842005414,
                            "resolution": 8.583069007761132E-5
                        }, {
                            "level": 15,
                            "scale": 18035.7421002707,
                            "resolution":  4.291534503880566E-5
                        }, {
                            "level": 16,
                            "scale": 9017.87105013534,
                            "resolution":2.1457672519402802E-5
                        }, {
                            "level": 17,
                            "scale": 4508.93552506767,
                            "resolution": 1.0728836259701401E-5
                        },
                        // {
                        //     "level": 18,
                        //     "scale": 2254.46776253384,
                        //     "resolution": 5.364418129850712E-6
                        // },
                        // {
                        //     "level": 19,
                        //     "scale": 1127.23388126692,
                        //     "resolution": 2.682209064925356E-6
                        // }, {
                        //     "level": 20,
                        //     "scale": 563.61694063346,
                        //     "resolution": 1.341104532462678E-6
                        // }
                    ]
                });
                this.loaded = true;
                this.onLoad(this);
            },
            getTileUrl: function (level, row, col) {
                return `http://218.2.231.245/historyraster/rest/services/History/js_yxzj_2012/MapServer/tile/${level}/${row}/${col}`;
            }
        });

    }
);